Paragraph Class

Represents a paragraph, which is the basic unit of text in an OpenDocument file.

Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office (in Independentsoft.Office.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#
public class Paragraph : ITextContent, IIndexContent, 
	IContentElement, ICellContent, IDrawText, IHeaderFooterContent
Inheritance
Object    Paragraph
Implements
IDrawText, ICellContent, IContentElement, IIndexContent, ITextContent, IHeaderFooterContent

Constructors

Paragraph Initializes a new instance of the Paragraph class.

Properties

ClassNames Contains a white space separated list of paragraph style names.
ConditionalStyle Contains the conditional-style, that is, a style that contains conditions and maps to other styles.
Content Contains a collection of paragraph content elements.
ID Contains an identifier for an element.
Style Contains a style that shall have the family paragraph. If a conditional style is applied, this attribute has the name of the style that was the result of the conditional style evaluation.

Methods

Add(Annotation) Adds an Annotation object to the content.
Add(AttributedText) Adds an AttributedText object to the content.
Add(Bookmark) Adds a Bookmark object to the content.
Add(BookmarkEnd) Adds a BookmarkEnd object to the content.
Add(BookmarkStart) Adds a BookmarkStart object to the content.
Add(Change) Adds a Change object to the content.
Add(ChangeEnd) Adds a ChangeEnd object to the content.
Add(ChangeStart) Adds a ChangeStart object to the content.
Add(Field) Adds a Field object to the content.
Add(Hyperlink) Adds a Hyperlink object to the content.
Add(IParagraphContent) Adds a IParagraphContent object to the content.
Add(Note) Adds a Note object to the content.
Add(PointReference) Adds a PointReference object to the content.
Add(RangeReference) Adds a RangeReference object to the content.
Add(Ruby) Adds a Ruby object to the content.
Add(Shape) Adds a Shape object to the content.
Add(SoftPageBreak) Adds a SoftPageBreak object to the content.
Add(String) Adds a string object to the content. Tabs, line breaks and runs of multiple spaces are encoded as the corresponding ODF elements (<text:tab/>, <text:line-break/>, <text:s/>) so the whitespace survives the white-space collapsing that OpenDocument consumers apply to plain character data.
Add(Text) Adds a Text object to the content.
AddLineBreak Adds a single line break to the content.
AddSpace Adds a single space to the content.
AddSpace(Int32) Adds a single space to the content.
AddTab Adds a single tab to the content.
Clone Creates a new object that is a deep copy of the current instance.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetContentElements Returns all content elements.
GetHashCode
(Inherited from Object)
GetParent Returns the parent element.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString Converts the value of the current Paragraph object to its equivalent string representation.
(Overrides ObjectToString)

See Also